home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d13
/
stistics.arc
/
REGRESS.DOC
< prev
next >
Wrap
Text File
|
1988-07-24
|
3KB
|
48 lines
LINEAR REGRESSION (CORRELATION)
This program is designed to analyze correlation data and to provide you
with the numbers needed to construct the straight line which best fits all
the data. Here is some sample data in the format in which it should be
typed (NONDOCUMENT mode of WordStar) if you wish to enter it via file
instead of directly from the keyboard. The data represents the ability of
liver slices from various ages of guinea pigs to congugate phenolphthalein
with glucuronic acid.
X = age (days) Y = mmoles conjugated <--- Title, up to 65 characters
1 5.6 <--- X value followed by Y value
1 8.8 <--- same
3 12 .
5 18 .
6 31 .
10 38 .
10 44 .
11 22 .
14 37 .
15 46 .
21 54 .
If entering data directly from the keyboard, the first prompt will ask if
you want the data sent to the printer or not. Next, a title is entered for
the data. You are then prompted for the number of pairs of points that
will be entered. The X values are then entered, followed by the Y values.
Results will then be sent to the screen, or to the screen and printer,
depending upon your answer to the first prompt. A confidence interval and
correlation coefficient are also calculated.
The best straight line can be plotted by using the coordinates of the two
points output by the program. This version of the program also calculates
predictions. There are provisions for entering any number of X values, one
by one, and the calculated Y values are printed out. This predictive part
of the program is fed with data from keyboard only, since it is expected to
be most valuable after the basic data is calculated. See the example on
the back of this sheet.
REFERENCE: Goldstein, A. 1964 Biostatistics: An Introductory Text.
Macmillan Company, New York. Pages 135-146.
FORTRAN VERSION: Dr. Stanley Kaplan May 65
BASIC VERSION: Dr. Stanley Kaplan Jul 81
PASCAL VERSION: Dr. Stanley Kaplan Sep 85
UPDATES: Oct 86 (Version 2.00)
Feb 87 (Version 2.10)
Feb 88 (MS-DOS Version 2.2)